// eslint-disable-next-line no-unused-vars

import { bar1 } from './types/bar1'
import { line1 } from './types/line1'
import { map1 } from './types/map1'
import { pie1 } from './types/pie1'

const methods = {
  line1, map1, pie1, bar1
}

export function getOption(type, renderData, config) {
  if (!renderData) {
    return {}
  }
  config = config || {}
  if (methods[type]) {
    const op = methods[type](renderData, config)
    return op
  } else {
    return {}
  }
}

